package com.tledu.zyf.model;

public class Attachment {
	private int id;
	// 新名字
	private String newName;
	// 原名字
	private String oldName;
	// 文件大小
	private long size;
	// 文件后缀
	private String suffix;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNewName() {
		return newName;
	}

	public void setNewName(String newName) {
		this.newName = newName;
	}

	public String getOldName() {
		return oldName;
	}

	public void setOldName(String oldName) {
		this.oldName = oldName;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public Attachment(int id, String newName, String oldName, long size, String suffix) {
		super();
		this.id = id;
		this.newName = newName;
		this.oldName = oldName;
		this.size = size;
		this.suffix = suffix;
	}

	public Attachment(String newName, String oldName, long size, String suffix) {
		super();
		this.newName = newName;
		this.oldName = oldName;
		this.size = size;
		this.suffix = suffix;
	}

	public Attachment() {
		super();
	}

	@Override
	public String toString() {
		return "Attachment [id=" + id + ", newName=" + newName + ", oldName=" + oldName + ", size=" + size + ", suffix="
				+ suffix + "]";
	}

}
